
<?php $this->Html->addCrumb('Offices', '/Offices'); ?>
<?php $this->Html->addCrumb($offices[key($offices)], '/Offices/view/'.key($offices)); ?>
<?php $this->Html->addCrumb('Add New'); 
?>
<div class="interactions form">
<?php echo $this->Form->create('Interaction', array('class' => 'form' )); ?>
	<fieldset>
		<legend class="formtitle"><?php echo __('Add Interaction'); ?></legend>
	
	<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('i_date',array('type' => 'text','div' => false, 'label' => array('text' => 'Date', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		
		<?php echo $this->Form->input('i_type',array(
			'options'=>$types,
			'label'=>'Type',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));?>
		<?php echo $this->Form->input('i_details',array(
			'rows' => '5',

			'label' => 'Details',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));
			?>
		<?php echo $this->Form->input('e_id',array(
			'options'=>$employee,
			'label' => 'Employee',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));?>
			<?php echo $this->Form->input('o_id',array(
			'options'=>$offices,
			
			'label'=>'Office',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
